package cn.flying.cloud.base.common.vo;

import java.io.Serializable;

/**
 * 分页查询请求参数对象
 *
 * @author: admin
 * @date: 2023年06月01日 14:25
 * @version: 1.0
 */
public class PageRequest<T> implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 第几页
     */
    private Integer pageNum = 1;
    /**
     * 每一页总数
     */
    private Integer pageSize = 10;

    /**
     * 参数对象
     */
    private T param;

    /**
     * 排序条件
     */
    private String sorts;

    public PageRequest() {
    }

    public PageRequest(Integer pageNum, Integer pageSize, T param) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.param = param;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public T getParam() {
        return param;
    }

    public void setParam(T param) {
        this.param = param;
    }

    public String getSorts() {
        return sorts;
    }

    public void setSorts(String sorts) {
        this.sorts = sorts;
    }
}
